<!DOCTYPE html>
<html lang="zh-cn">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 3.9.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/all.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"s.venuslight.site","root":"/","scheme":"Muse","version":"7.8.0","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":true,"show_result":false,"style":null},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},"path":"search.xml"};
  </script>

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9932271407619828"
     crossorigin="anonymous"></script>


  <meta name="description" content="github  &amp;emsp;&amp;emsp;&amp;emsp;用过git的都用过这个了吧，私有仓库现在也免费了。容量大，稳定好用。静态站点的page功能可以cname方式使用自己的域名，也不限制站点数量，最近又添加了自动申请SSL证书的福利，letsencrypt的免费证书，这家的证书都是三个月，续期还没试过。">
<meta name="keywords" content="comment,hashover,统计,404">
<meta property="og:type" content="article">
<meta property="og:title" content="几种在线git托管方法">
<meta property="og:url" content="https://s.venuslight.site/2021/几种在线git托管方法/index.html">
<meta property="og:site_name" content="Story">
<meta property="og:description" content="github  &amp;emsp;&amp;emsp;&amp;emsp;用过git的都用过这个了吧，私有仓库现在也免费了。容量大，稳定好用。静态站点的page功能可以cname方式使用自己的域名，也不限制站点数量，最近又添加了自动申请SSL证书的福利，letsencrypt的免费证书，这家的证书都是三个月，续期还没试过。">
<meta property="og:locale" content="zh-cn">
<meta property="og:updated_time" content="2022-06-10T09:19:24.573Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="几种在线git托管方法">
<meta name="twitter:description" content="github  &amp;emsp;&amp;emsp;&amp;emsp;用过git的都用过这个了吧，私有仓库现在也免费了。容量大，稳定好用。静态站点的page功能可以cname方式使用自己的域名，也不限制站点数量，最近又添加了自动申请SSL证书的福利，letsencrypt的免费证书，这家的证书都是三个月，续期还没试过。">

<link rel="canonical" href="https://s.venuslight.site/2021/几种在线git托管方法/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-cn'
  };
</script>

  <title>几种在线git托管方法 | Story</title>
  


  <script>
    var _hmt = _hmt || [];
    (function() {
      var hm = document.createElement("script");
      hm.src = "https://hm.baidu.com/hm.js?1831bdf36f82df336b68e5b59b8c5ba8";
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(hm, s);
    })();
  </script>




  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="Toggle navigation bar">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">Story</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">something about my life</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="main-menu menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-home fa-fw"></i>Home</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-user fa-fw"></i>About</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>Tags</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-th fa-fw"></i>Categories</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-archive fa-fw"></i>Archives</a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>Search
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup">
        <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off"
           placeholder="Searching..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result">
  <div id="no-result">
    <i class="fa fa-spinner fa-pulse fa-5x fa-fw"></i>
  </div>
</div>

    </div>
  </div>

</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>
  <div class="reading-progress-bar"></div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post posts-expand">
            

    
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-cn">
    <link itemprop="mainEntityOfPage" href="https://s.venuslight.site/2021/几种在线git托管方法/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="ZM">
      <meta itemprop="description" content="dasd">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Story">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          几种在线git托管方法
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-calendar"></i>
              </span>
              <span class="post-meta-item-text">Posted on</span>

              <time title="Created: 2021-06-06 23:53:40" itemprop="dateCreated datePublished" datetime="2021-06-06T23:53:40+08:00">2021-06-06</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="far fa-calendar-check"></i>
                </span>
                <span class="post-meta-item-text">Edited on</span>
                <time title="Modified: 2022-06-10 17:19:24" itemprop="dateModified" datetime="2022-06-10T17:19:24+08:00">2022-06-10</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="far fa-folder"></i>
              </span>
              <span class="post-meta-item-text">In</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/git/" itemprop="url" rel="index"><span itemprop="name">git</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="Views" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">Views: </span>
              <span id="busuanzi_value_page_pv"></span>
            </span>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <h3> github </h3>
&emsp;&emsp;&emsp;用过git的都用过这个了吧，私有仓库现在也免费了。容量大，稳定好用。静态站点的page功能可以cname方式使用自己的域名，也不限制站点数量，最近又添加了自动申请SSL证书的福利，letsencrypt的免费证书，这家的证书都是三个月，续期还没试过。 <br>
<a id="more"></a>
&emsp;&emsp;gitalk和gitment是用GitHub的issue当做后台的评论系统（本站就是这样用的），应该不是滥用吧。 <br>
&emsp;&emsp;唯一可惜的是国内访问不稳，可能上一分钟能访问，下一秒就点不开了，过一会儿又好了。这样的话page功能也就没法直接用了，毕竟速度慢和打不开都是无法忽略的障碍。当然可以用CDN之类的解决。目前是这样，希望以后不要恶化。<br>
<h3> gitlab </h3>
&emsp;&emsp;注册了下，进去建了个test仓库，点开几个按钮看看，然后就被踢出来了，账号被blocked。一直找不到解禁的方法，也懒得重新注册，似乎也没有什么吸引人的特色，以为会比GitHub速度快，限制少，然而并没有。据说这个是一些公司买来开源工具搭建内网服务用的。后来发现这家公开说明不给中国人用，禁止雇用包括中国在内的几个国家的员工。反正也没人去，不过应该会有很多国内的公司送钱去贴人家的冷屁股买来用吧。之前发现的主机商家googiehost也是，注册前不说，进去发现账号是blocked的才知道也是禁止国人用的。还假惺惺的添加China的选项。<br>
<h3> coding </h3>
&emsp;&emsp;目前觉得最好用的托管站，单仓库2GB，大文件100M，文件网盘30GB，单文件300M。还有100GB的制品库和docker仓库。免费的持续集成每月1000min，2核4G 100GB的配置，用自己的VPS接入不限时间，并行触发只有一个。集成cloud studio。
<br>
&emsp;&emsp;cloud studio很久之前用过，测试了新建个Ubuntu18的工作空间，创建个python项目模板，扔一边了，那时候git用不惯，主要是多端修改总是出现冲突，还费时费力的搞zerotier+seafile的同步。另外webIDE加载慢，终端的文件管理不友好，还有就是VS code的界面不习惯，毕竟没有sublime text3和pycharm那么顺手。现在看来是最趁手的了。2核  2GB  1T磁盘 限制是每天4个小时，5个工作空间，只能同时开一个；不删文件。git地址任意，命令行补全。可以用自己的VPS做server，就没有使用时间限制，不过资源限制就是VPS的配置了。
<h3> codeup </h3>
&emsp;&emsp;单库容量10GB(Git库5GB + LFS 5GB) ，不限总量，
流水线：最大并发任务数 3，运行时长 1800 分钟/月。
制品仓库：容量不限。
还在测试期间，界面并不友好，有些入口不方便直接点开，二级目录，侧边栏入口还会变化的。webIDE 5核 10GB 40G磁盘,最大同时运行5个工作区，不活动30分钟冻结，5天删除工作区。 只关联codeup仓库，命令行无补全。大概只考虑面向企业。
<br>
<h3> gitee </h3>
&emsp;&emsp;仿github，资源给的极少。500M仓库，总量5GB。持续集成收费，最近pages关闭，原本也不能用自己域名，还不会自动更新pages，发布新内容还得登陆刷新。
<br>
<h3> gogs </h3>
&emsp;&emsp;自建，功能够用，二进制文件直接运行。但是没有仓库啊持续集成啊之类的，资源都是自己服务器。所以还是用coding，节约VPS空间。
<br>



    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/comment/" rel="tag"># comment</a>
              <a href="/tags/hashover/" rel="tag"># hashover</a>
              <a href="/tags/统计/" rel="tag"># 统计</a>
              <a href="/tags/404/" rel="tag"># 404</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2021/serverless的站点-cloudflare的workers和KV/" rel="prev" title="serverless的站点-cloudflare的workers和KV">
      <i class="fa fa-chevron-left"></i> serverless的站点-cloudflare的workers和KV
    </a></div>
      <div class="post-nav-item">
    <a href="/2021/使用免费空间创建博客网站-freehostia/" rel="next" title="使用免费空间创建博客网站（2）">
      使用免费空间创建博客网站（2） <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  



          </div>
          
    <div class="comments" id="gitalk-container"></div>

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          Table of Contents
        </li>
        <li class="sidebar-nav-overview">
          Overview
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#null"><span class="nav-number">1.</span> <span class="nav-text"> github </span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#null"><span class="nav-number">2.</span> <span class="nav-text"> gitlab </span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#null"><span class="nav-number">3.</span> <span class="nav-text"> coding </span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#null"><span class="nav-number">4.</span> <span class="nav-text"> codeup </span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#null"><span class="nav-number">5.</span> <span class="nav-text"> gitee </span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#null"><span class="nav-number">6.</span> <span class="nav-text"> gogs </span></a></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
  <p class="site-author-name" itemprop="name">ZM</p>
  <div class="site-description" itemprop="description">dasd</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">13</span>
          <span class="site-state-item-name">posts</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">5</span>
        <span class="site-state-item-name">categories</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">18</span>
        <span class="site-state-item-name">tags</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/yixi1761" title="GitHub → https://github.com/yixi1761" rel="noopener" target="_blank"><i class="fab fa-github fa-fw"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:admin@venuslight.site" title="E-Mail → mailto:admin@venuslight.site" rel="noopener" target="_blank"><i class="fa fa-envelope fa-fw"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        
  <div class="beian"><a href="https://beian.miit.gov.cn" rel="noopener" target="_blank">豫ICP备 </a>
      <img src="https://cdn.jsdelivr.net/gh/yixi1761/comments/备案图标.png" style="display: inline-block;"><a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=2021011241" rel="noopener" target="_blank">2021011241号-1 </a>
  </div>

<div class="copyright">
  
  &copy; 2015 – 
  <span itemprop="copyrightYear">2022</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">ZM</span>
</div>
  <div class="powered-by">Powered by <a href="https://hexo.io" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://muse.theme-next.org" class="theme-link" rel="noopener" target="_blank">NexT.Muse</a>
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="Total Visitors">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="Total Views">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script><script src="/js/motion.js"></script>
<script src="/js/schemes/muse.js"></script>
<script src="/js/next-boot.js"></script>



  
  <script>
    (function(){
      var canonicalURL, curProtocol;
      //Get the <link> tag
      var x=document.getElementsByTagName("link");
		//Find the last canonical URL
		if(x.length > 0){
			for (i=0;i<x.length;i++){
				if(x[i].rel.toLowerCase() == 'canonical' && x[i].href){
					canonicalURL=x[i].href;
				}
			}
		}
    //Get protocol
	    if (!canonicalURL){
	    	curProtocol = window.location.protocol.split(':')[0];
	    }
	    else{
	    	curProtocol = canonicalURL.split(':')[0];
	    }
      //Get current URL if the canonical URL does not exist
	    if (!canonicalURL) canonicalURL = window.location.href;
	    //Assign script content. Replace current URL with the canonical URL
      !function(){var e=/([http|https]:\/\/[a-zA-Z0-9\_\.]+\.baidu\.com)/gi,r=canonicalURL,t=document.referrer;if(!e.test(r)){var n=(String(curProtocol).toLowerCase() === 'https')?"https://sp0.baidu.com/9_Q4simg2RQJ8t7jm9iCKT-xh_/s.gif":"//api.share.baidu.com/s.gif";t?(n+="?r="+encodeURIComponent(document.referrer),r&&(n+="&l="+r)):r&&(n+="?l="+r);var i=new Image;i.src=n}}(window);})();
  </script>




  <script src="/js/local-search.js"></script>












  

  

<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.css">

<script>
NexT.utils.loadComments(document.querySelector('#gitalk-container'), () => {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js', () => {
    var gitalk = new Gitalk({
      clientID    : '2c1a75621f1f5fb8f431',
      clientSecret: 'ab8a30ff111acaf2f83759e8600cc92e34a3134a',
      repo        : 'comments',
      owner       : 'yixi1761',
      admin       : ['yixi1761'],
      id          : '51229bd1e4345b8f98cbe5f1d053f8c3',
        language: '',
      distractionFreeMode: true
    });
    gitalk.render('gitalk-container');
  }, window.Gitalk);
});
</script>

</body>
</html>
